filechooserwidget: Use a center box for the search entry
authorTimm Bäder <mail@baedert.org>
Sun, 28 Apr 2019 09:30:13 +0000 (11:30 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 28 Apr 2019 09:30:13 +0000 (11:30 +0200)
This way we can avoid a slight position offset when we show or hide the
spinner during a search.

gtk/ui/gtkfilechooserwidget.ui

index 09fab2a02ef66ec74e258191ca1b717d57073530..6acb18e41d3adfad1d74cf3310e5959f78f09ca6 100644 (file)
                                   <object class="GtkStackPage">
                                     <property name="name">search</property>
                                     <property name="child">
-                                      <object class="GtkBox" id="search_entry_box">
-                                        <property name="spacing">6</property>
+                                      <object class="GtkCenterBox" id="search_entry_box">
                                         <property name="margin">6</property>
-                                        <child>
+                                        <child type="center">
                                           <object class="GtkSearchEntry" id="search_entry">
                                             <property name="width-chars">45</property>
                                             <property name="hexpand">1</property>
@@ -97,7 +96,7 @@
                                             <signal name="stop-search" handler="search_entry_stop_cb" swapped="yes"/>
                                           </object>
                                         </child>
-                                        <child>
+                                        <child type="end">
                                           <object class="GtkSpinner" id="search_spinner">
                                             <property name="visible">0</property>
                                           </object>